package com.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.pojo.Expense;

@Mapper
@Repository
public interface ExpenseDao{
	List<Expense> getAll();
	boolean delOne(int id);
	boolean updateOne(Expense expense);
	boolean addOne(Expense expense);
	Expense getOneExpense(int id);
	boolean approveOneExpense(int id);
	boolean refuseOneExpense(int id);
	boolean approveOneExpense(@Param("id")int id,@Param("u_nickname")String u_nickname);
	boolean refuseOneExpense(@Param("id")int id,@Param("u_nickname")String u_nickname);
	List<Expense> getOneAll(int id);
	List<Expense> getOneAllB(int d_id);
}
